﻿using SLNGP.Core.GeneticPrograms;

namespace SLNGP.Core.GeneticOpearators
{
    public class RemoveDuplicatesGeneticOpearator : GeneticOpearator
    {
        public override void Execute()
        {
            //IGeneration NewCurrentGeneration = new Generation(
            //    Parent.LastRunResults.CurrentGeneration.Distinct(
            //        new LambdaEqualityComparer<IIndividual>((i1, i2) => i1.ToString() == i2.ToString())).ToList());
            //Parent.LastRunResults.Generations.RemoveAt(Parent.LastRunResults.Generations.Count - 1);
            //Parent.LastRunResults.Generations.Add(NewCurrentGeneration);
        }
    }
}